package com.tzbank.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_page_rule_relation")
@Table(appliesTo = "mb_page_rule_relation", comment = "页面分区与规则ID的映射关系")
public class PageRuleRelation extends BaseModel implements Serializable {

	private static final long serialVersionUID = 8648648360933683156L;

	/**	
	 * 页面分区ID
	 */
	@ApiModelProperty(value = "页面分区ID")
	@Column(name = "page_id", columnDefinition = "varchar(50)  NOT NULL COMMENT '页面分区ID'")
	private String pageId;

	/**
	 * 规则ID串
	 */
	@ApiModelProperty(value = "规则ID串")
	@Column(name = "rule_ids", columnDefinition = "varchar(200)  DEFAULT NULL COMMENT '规则ID串'")
	private String ruleIds;

	/**
	 * 规则组合逻辑
	 */
	@ApiModelProperty(value = "规则组合逻辑")
	@Column(name = "rule_logic", columnDefinition = "varchar(100)  DEFAULT NULL COMMENT '规则组合逻辑'")
	private String ruleLogic;

	/**
	 * 执行标记（1为符合规则，0为不符合）
	 */
	@ApiModelProperty(value = "执行标记（1为符合规则，0为不符合）")
	@Column(name = "action_flag", columnDefinition = "varchar(100)  NOT NULL DEFAULT 1 COMMENT '执行标记（1为符合规则，0为不符合）'")
	private String actionFlag;

	/**
	 * 动作ID
	 */
	@ApiModelProperty(value = "动作ID")
	@Column(name = "action_id", columnDefinition = "varchar(50)  DEFAULT NULL  COMMENT '动作ID'")
	private String actionId;

}
